package hero.mps.web.school_class.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("school_class")
public class SchoolClass {
    @TableId(type = IdType.AUTO)
    /**
     * 班级id
     */
    private Integer classId;

    /**
     * 专业id
     */
    private Integer majorId;

    /**
     * 班级名称
     */
    private String className;

    /**
     * 学年
     */
    private String classYear;

    /**
     * 序号
     */
    private Integer orderNum;
    @TableField(exist = false)
    private String majorName;
    @TableField(exist = false)
    private String collegeName;
}
